<?php

use think\migration\Seeder;

class WechatMenuSeeder extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public $datas = [
        ['id' => '16',
            'pid' => '0',
            'title' => '微信管理',
            'node' => '',
            'icon' => '',
            'url' => '#',
            'params' => '',
            'target' => '_self',
            'sort' => '300',
            'status' => '1',
        ],['id' => '17',
            'pid' => '16',
            'title' => '微信管理',
            'node' => '',
            'icon' => '',
            'url' => '#',
            'params' => '',
            'target' => '_self',
            'sort' => '20',
            'status' => '1',
        ],['id' => '18',
            'pid' => '17',
            'title' => '微信授权配置',
            'node' => '',
            'icon' => 'layui-icon layui-icon-set',
            'url' => 'wechat/config/options',
            'params' => '',
            'target' => '_self',
            'sort' => '2',
            'status' => '1',
        ],['id' => '19',
            'pid' => '17',
            'title' => '微信支付配置',
            'node' => '',
            'icon' => 'layui-icon layui-icon-rmb',
            'url' => 'wechat/config/payment',
            'params' => '',
            'target' => '_self',
            'sort' => '1',
            'status' => '1',
        ],['id' => '20',
            'pid' => '16',
            'title' => '微信定制',
            'node' => '',
            'icon' => '',
            'url' => '#',
            'params' => '',
            'target' => '_self',
            'sort' => '10',
            'status' => '1',
        ],['id' => '21',
            'pid' => '20',
            'title' => '图文素材管理',
            'node' => '',
            'icon' => 'layui-icon layui-icon-template',
            'url' => 'wechat/news/index',
            'params' => '',
            'target' => '_self',
            'sort' => '6',
            'status' => '1',
        ],['id' => '22',
            'pid' => '20',
            'title' => '粉丝信息管理',
            'node' => '',
            'icon' => 'layui-icon layui-icon-user',
            'url' => 'wechat/fans/index',
            'params' => '',
            'target' => '_self',
            'sort' => '5',
            'status' => '1',
        ],['id' => '23',
            'pid' => '20',
            'title' => '回复规则管理',
            'node' => '',
            'icon' => 'layui-icon layui-icon-engine',
            'url' => 'wechat/keys/index',
            'params' => '',
            'target' => '_self',
            'sort' => '4',
            'status' => '1',
        ],['id' => '24',
            'pid' => '20',
            'title' => '关注回复配置',
            'node' => '',
            'icon' => 'layui-icon layui-icon-senior',
            'url' => 'wechat/keys/subscribe',
            'params' => '',
            'target' => '_self',
            'sort' => '3',
            'status' => '1',
        ],['id' => '25',
            'pid' => '20',
            'title' => '默认回复配置',
            'node' => '',
            'icon' => 'layui-icon layui-icon-survey',
            'url' => 'wechat/keys/defaults',
            'params' => '',
            'target' => '_self',
            'sort' => '2',
            'status' => '1',
        ],['id' => '26',
            'pid' => '20',
            'title' => '微信菜单管理',
            'node' => '',
            'icon' => 'layui-icon layui-icon-cellphone',
            'url' => 'wechat/menu/index',
            'params' => '',
            'target' => '_self',
            'sort' => '1',
            'status' => '1',
        ],['id' => '55',
            'pid' => '17',
            'title' => '微信数据统计',
            'node' => '',
            'icon' => 'layui-icon layui-icon-chart-screen',
            'url' => 'wechat/index/index',
            'params' => '',
            'target' => '_self',
            'sort' => '3',
            'status' => '1',
        ],
    ];
    public function run()
    {

        $this->table('system_menu')->insert($this->datas)->save();
    }
}